package com.d3works.apps.base.job;

import com.d3works.apps.base.db.repo.MailBatchRepository;
import com.d3works.apps.base.service.batch.MailBatchService;
import org.quartz.JobExecutionContext;

public class MailJob extends ThreadedBaseJob {
  @Override
  public void executeInThread(JobExecutionContext context) {
    try {
      executeBatch(MailBatchService.class, MailBatchRepository.CODE_BATCH_EMAIL_ALL_TIME_SHEET);
    } catch (Exception e) {
      throw new UncheckedJobExecutionException(e);
    }
  }
}
